﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace GMBuildUtility
{
    class Program
    {
        #region Constants
        #endregion

        #region Properties
        #endregion

        #region Events
        #endregion

        #region Constructors
        #endregion

        #region Overriden Methods
        #endregion

        #region Methods
        static void Main(string[] pArgs)
        {
            string assemblyPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
            Environment.CurrentDirectory = Path.GetDirectoryName(assemblyPath);

            foreach (string arg in pArgs)
            {
                Console.WriteLine(arg);
            }

            Stream stream = File.Create("xxx.txt");
            TextWriter tw = new StreamWriter(stream);
            tw.WriteLine(Environment.CurrentDirectory);
            foreach (string arg in pArgs)
            {
                tw.WriteLine(arg);
            }
            tw.Close();
        }
        #endregion

        #region Event Handlers
        #endregion

        #region Inner Classes
        #endregion
    }
}